package com.ruoyi.biz.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 maintain_manage
 *
 * @author ruoyi
 * @date 2020-11-30
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class MaintainManage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 保养管理id */
    private Long maintainId;

    /** 保养类型id */
    @Excel(name = "保养类型id")
    private Integer maintainTypeId;

    @Excel(name = "保养编号")
    private String code;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /** 计划开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "计划开始时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    private Date planBeginTime;

    /** 计划结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "计划结束时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    private Date planEndTime;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 通知的状态 */
    @Excel(name = "通知的状态")
    private Integer noticeStatus;

    /** 设备id */
    @Excel(name = "设备id")
    private Long equipmentId;

    /** 告警联系人 */
    @Excel(name = "告警联系人")
    private String alarmContact;

    @Excel(name = "告警联系人姓名")
    private String alarmContactName;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

/*
    @Excel(name = "当前用户名")
    private String currentUser;
*/

    @Excel(name = "字典label")
    private String dictLabel;

    @Excel(name = "设备名字")
    private String equipmentName;

    //TODO
    @Excel(name = "设备部位")
    private String position;

    @Excel(name = "保养内容")
    private String content;

    @Excel(name = "保养类型名称")
    private String maintainTypeName;

    @Excel(name = "保养计划状态")
    private String dictStatus;

}
